﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Frame_Navigation.aspx.cs"
    Inherits="Garlic.Frame_Navigation" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="themes/blue/global.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="Javascript/jquery-1.5.2.min.js"></script>
    <script type="text/javascript">
        $(function () {
            //navigation
            $('.nav_dl dt').click(function () {
                $(this).addClass('current').siblings('dt').removeClass('current');
                $(this).next().slideDown().siblings('dd').slideUp();
                $(this).next('dd').children('a').eq(0).addClass('current');
            });
            $('.nav_dl dd').eq(0).show().children('a').eq(0).addClass('current');
            $('.nav_dl dd a').click(function () {
                $(this).addClass('current').siblings('a').removeClass('current');

            });
        });
       
    </script>
</head>
<body id="nav_body">
    <div class="nav">
        <dl class="nav_dl">
            <%--<dt class="nav_icon_1"><a href="#">用户信息维护</a></dt>
            <dd>
                <a href="#">我的任务</a> <a href="#">草稿箱</a> <a href="#">已办任务</a>
            </dd>
            <dt class="nav_icon_2"><a href="#">角色管理</a></dt>
            <dd>
                <a href="#">我的任务</a> <a href="#">草稿箱</a> <a href="#">已办任务</a>
            </dd>
            <dt class="nav_icon_3"><a href="#">动作信息</a></dt>
            <dd>
                <a href="#">我的任务</a> <a href="#">草稿箱</a> <a href="#">已办任务</a>
            </dd>
            <dt class="nav_icon_4"><a href="#">菜单管理</a></dt>
            <dd>
                <a href="#">我的任务</a> <a href="#">草稿箱</a> <a href="#">已办任务</a>
            </dd>
            <dt class="nav_icon_5"><a href="#">系统代码配置</a></dt>
            <dd>
                <a href="#">我的任务</a> <a href="#">草稿箱</a> <a href="#">已办任务</a>
            </dd>--%>
            <dt class="nav_icon_1"><a href="#">
                <asp:Literal ID="labMainMenuName" runat="server"></asp:Literal></a>
            </dt>
            <dd>
                <asp:Repeater ID="Repeater1" runat="server">
                    <ItemTemplate>
                        <%-- <asp:HyperLink runat="server" Target="main" ID="hlMenu"></asp:HyperLink>--%>
                        <a href='../<%# Eval("Link_url") %>?userid=<%=GetUserID()%>&pagename=<%= GetMenuID() %>' target="main" id="hlMenu">
                            <%# Eval("Menu_name")%></a>
                    </ItemTemplate>
                </asp:Repeater>
            </dd>
        </dl>
    </div>
    <script type="text/javascript" language="javascript">
        function arrayPageName(size) {
            for (var x = 0; x <= size; x++) {
                this[x] = 0;
            }
            this.length = size;
            return this;
        }
        var pagename = '<%= GetCurrentMenuIndex() %>';
        var pathStr = null;
        $(function () {
            var pathStr = new arrayPageName($('.nav_dl dd a').length);//生成数组。
            for (var a = 0; a < $('.nav_dl dd a').length; a++) {
                var temStr= $('.nav_dl dd a').eq(a).attr("href");
                if (temStr.indexOf(pagename))
                    $('.nav_dl dd a').eq(a).addClass('current').siblings('a').removeClass('current');
            }
        });


       
    </script>
</body>
</html>
